package info.peigen.hotpot.common.core.logging.logback;

import ch.qos.logback.classic.spi.LoggingEvent;
import ch.qos.logback.core.ConsoleAppender;

/**
 * <b>(HotpotConsoleAppender)</b>
 *
 * @author Peigen
 * @version 1.0.0
 * @since 2023/7/10
 */
public class HotpotConsoleAppender extends ConsoleAppender {

    @Override
    protected void subAppend(Object event) {
        HotpotDesensitizationAppender appender = new HotpotDesensitizationAppender();
        appender.operation((LoggingEvent) event);
        super.subAppend(event);
    }
}